<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<a href="${pageContext.request.contextPath}/student/toAdd.action">添加Student</a>
	<table border="2">
		<tr>
			<td>id</td>
			<td>姓名</td>
			<td>学科</td>
			<td>成绩</td>
			<td>更新操作</td>
			<td>删除操作</td>
		</tr>
		<c:forEach items="${list}" var="s">
			<tr>
				<td>${s.id}</td>
				<td>${s.name}</td>
				<td>${s.subject}</td>
				<td>${s.score}</td>
				<td><a href="${pageContext.request.contextPath}/student/toUpdate.action?id=${s.id}">更新Student</a></td>
				<td><a href="${pageContext.request.contextPath}/student/deleteStudentById.action?id=${s.id}">删除Student</a></td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>